package model.social;

import java.util.*; 

import model.librairie.Collection;

public class Utilisateur {

    protected int id_utilisateur;

    protected String login;
    
    protected String mdp;

    protected boolean isAdmin;

   protected Profil profil;

	private Set<MessagePrive> listeMessagesRecus = 
		new HashSet<MessagePrive>(0);

	private Set<MessagePrive> listeMessagesEnvoyes = 
		new HashSet<MessagePrive>(0);	

	private Set<Collection>  listeCollections =
		new HashSet<Collection>(0);	

	private Set<Amis>  listeAmis =
		new HashSet<Amis>(0);		
	
    public Utilisateur() {
    }
    
    public String toString(){
		
		return  id_utilisateur+";"+
				login+";"+
				mdp+";"+
				isAdmin+";"+
				
				"/"+profil.toString();
	}
    
    public Utilisateur(String login, String mdp, boolean isAdmin) {
		this.login = login;
		this.mdp= mdp;
		this.isAdmin = isAdmin;
	}

	public void suggererArticleAUnAmi (int id_article, int id_ami) {
    }

    public void envoyerMessageAUnAmi (MessagePrive msg, Utilisateur u) {
    	MessagePrive mp = new MessagePrive(msg.getSujet(),msg.getContenu(),new Date());
    	mp.setId_destinataire(u);
    }

    public void partagerDerniereAcquisition (int id_article) {
    }

    public void partagerDernierCoupDeCoeur (int id_article) {
    }

    public void changerDroitsCollectionAmi (int id_ami, int id_collection, char choixDroits) {
    }

    public void suggererAmiAUnAmi (int id_amiSuggere, int id_ami) {
    }

    public void modifierDroit (int id_utilisateur, boolean isAdmin) {
    }

    public void supprimerUnAmi (int id_ami) {
    }

    public void ajouterUnAmi (int id_ami) {
    }

    public void bloquerUnAmi (int id_ami) {
    }

    public void validerAjoutAmi (boolean isOk, int id_ami) {
    }

	public int getId_utilisateur() {
		return id_utilisateur;
	}

	public void setId_utilisateur(int id_utilisateur) {
		this.id_utilisateur = id_utilisateur;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public boolean getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	public Set<Amis> getListeAmis() {
		return listeAmis;
	}

	public void setListeAmis(Set<Amis> listeAmis) {
		this.listeAmis = listeAmis;
	}

	public Profil getProfil() {
		return profil;
	}

	public void setProfil(Profil profil) {
		this.profil = profil;
	}

	public Set<MessagePrive> getListeMessagesRecus() {
		return listeMessagesRecus;
	}

	public void setListeMessagesRecus(Set<MessagePrive> listeMessagesRecus) {
		this.listeMessagesRecus = listeMessagesRecus;
	}

	public Set<MessagePrive> getListeMessagesEnvoyes() {
		return listeMessagesEnvoyes;
	}

	public void setListeMessagesEnvoyes(Set<MessagePrive> listeMessagesEnvoyes) {
		this.listeMessagesEnvoyes = listeMessagesEnvoyes;
	}	

	public Set<Collection> getListeCollections() {
		return listeCollections;
	}

	public void setListeCollections(Set<Collection> listeCollections) {
		this.listeCollections = listeCollections;
	}

	public String getMdp() {
		return mdp;
	}

	public void setMdp(String mdp) {
		this.mdp = mdp;
	}
	
}

